import {createMaterialTopTabNavigator,createAppContainer} from 'react-navigation'
import HomePageOne from '../page/HomePageOne'
const TopTabNavigator=createMaterialTopTabNavigator({
    page1:{
        screen:HomePageOne,
        navigationOptions: {
            title: '关注',
           
        }
    },
    page2:{
        screen:HomePageOne,
        navigationOptions: {
            title: '社区'
        }
    }
 
},{
    initialRouteName: 'page1',
    // swipeEnabled: false, // 是否允许滑动切换tabs 默认是true
    animationEnabled: false, // 点击tab label切换tab时是否开启动画 默认为true
    // order: ['Settings', 'Home'],
   // swipeEnabled:false,
  
    tabBarPosition: 'top', // tab bar显示的位置，默认是 'top'
    tabBarOptions:{
        tabStyle:{minWidth:50},
        upperCaseLabel:false,
       
        indicatorStyle:{
            height:2,
           
        }
    }
});
export default createAppContainer(TopTabNavigator)